home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Main.bin / EOFException.java < prev    next >
Text File  |  1998-09-22  |  1KB  |  54 lines

  1. /*
  2.  * @(#)EOFException.java    1.4 98/07/01
  3.  *
  4.  * Copyright 1995-1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  * 
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.io;
  16.  
  17. /**
  18.  * Signals that an end of file or end of stream has been reached 
  19.  * unexpectedly during input. 
  20.  * <p>
  21.  * This exception is mainly used by data input streams, which 
  22.  * generally expect a binary file in a specific format, and for which 
  23.  * an end of stream is an unusual condition. Most other input streams 
  24.  * return a special value on end of stream. 
  25.  *
  26.  * @author  Frank Yellin
  27.  * @version 1.4, 07/01/98
  28.  * @see     java.io.DataInputStream
  29.  * @see     java.io.IOException
  30.  * @since   JDK1.0
  31.  */
  32. public
  33. class EOFException extends IOException {
  34.     /**
  35.      * Constructs an <code>EOFException</code> with no detail message. 
  36.      *
  37.      * @since   JDK1.0
  38.      */
  39.     public EOFException() {
  40.     super();
  41.     }
  42.  
  43.     /**
  44.      * Constructs an <code>EOFException</code> with the specified detail
  45.      * message. 
  46.      *
  47.      * @param   s   the detail message.
  48.      * @since   JDK1.0
  49.      */
  50.     public EOFException(String s) {
  51.     super(s);
  52.     }
  53. }
  54.